<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>电影评价详情页</title>
    <link rel="stylesheet" href="assets/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="assets/css/bootstrap-maizi.css"/>
</head>
<body>
<!--导航-->
<jsp:include page="header.jsp"></jsp:include>
<!--导航-->

<div class="container">
    <div class="row">
        <div class="col-md-2">
            <div class="list-group">
                <a href="${pageContext.request.contextPath }/adminEvaluation" class="list-group-item active">影片评价列表</a>
                <a href="${pageContext.request.contextPath }/adminEvaluation?method=indexReview"
                   class="list-group-item">影评文章列表</a>
            </div>
        </div>
        <div class="col-md-10">
            <div class="page-header">
                <h1>影评管理</h1>
            </div>
            <table class="table table-hover">
                <thead>
                <tr>
                    <th>影片评价属性</th>
                    <th>影片评价信息</th>
                </tr>
                </thead>
                <tbody>
                <tr class="hidden">
                    <td>影片评价ID</td>
                    <td>${evaluation.id}</td>
                </tr>
                <tr>
                    <td>影片名称</td>
                    <td>${evaluation.mov_name}</td>
                </tr>
                <tr>
                    <td>影评人</td>
                    <td>${evaluation.author}</td>
                </tr>
                <tr>
                    <td>影片评分</td>
                    <td>${evaluation.score}</td>
                </tr>
                <tr>
                    <td>评价时间</td>
                    <td>${evaluation.publish_time}</td>
                </tr>
                <tr>
                    <td>评价内容</td>
                    <td>${evaluation.content}</td>
                </tr>
                <tr>
                    <td>
                        <div style="margin: 0 auto; width: 200px;">
                            <button type="button" class="btn btn-success"
                                    onclick="location='${pageContext.request.contextPath }/adminEvaluation?method=delete&id=${evaluation.id}'">
                                删除
                            </button>
                        </div>
                    </td>
                    <td>
                        <button type="button" class="btn btn-danger"
                                onclick="location='${pageContext.request.contextPath }/adminEvaluation'">取消
                        </button>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>

<!--footer-->
<jsp:include page="footer.jsp"></jsp:include>
<!--footer-->

<script src="assets/javascripts/jquery.min.js"></script>
<script src="assets/javascripts/bootstrap.min.js"></script>
<script src="assets/javascripts/Chart.js"></script>
<script src="assets/javascripts/script.js"></script>
</body>
</html>